package com.yfyszk.kingbird.common;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @ClassName java8Test
 * @Description: TODO
 * @Author wgc
 * @Date 2020/12/15 14:10
 * @Version V1.0
 **/
public class java8Test {
    public static void main(String[] args){
        List<String> list = Lists.newArrayList("aaa", "bbb", "cccc", "dd");
        Long count = list.stream()
                .parallel()
                .filter(e -> e.length() >= 3)
                .sorted()
                .count();
        System.out.println(count);
    }
}
